package com.springcloud.service;

import com.springcloud.dao.PaymentDao;
import com.springcloud.entities.PayMent;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class PayMentServiceImpl implements PayMentService{
    @Resource
    private PaymentDao paymentDao;

    public int create(PayMent payMent){
        return paymentDao.create(payMent);
    }

    public PayMent getPayMentById(@Param("id") Long id){
        return paymentDao.getPayMentById(id);
    }

}












